package com.yfp.tissue.service.impl;

import com.yfp.system.api.domain.SysUser;
import com.yfp.tissue.domain.Dto.UserReqDto;
import com.yfp.tissue.mapper.SysUserMapper;
import com.yfp.tissue.service.UserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description: 系统用户
 * 
 * @CreateDate: 2024/7/8 10:49
 * @UpdateUser: 
 * @UpdateDate: 2024/7/8 10:49
 * @UpdateRemark: 暂无修改
 * @Version: 1.0
 */
@Slf4j
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private SysUserMapper sysUserMapper;

    @Override
    public SysUser findById(Long id) {
        return sysUserMapper.selectUserById(id);
    }

    @Override
    public List<SysUser> findByDeptIdAndCitys(UserReqDto userReqDto) {
        return sysUserMapper.findByDeptIdAndCitys(userReqDto);
    }
}
